<st #st [columns]="stColumns" [scroll]="{ y: '100%' }" [data]="tableData" [res]="TABLE_PARAMETER.res"
  [total]="TABLE_PARAMETER.page.total" [size]="TABLE_PARAMETER.size" [pi]="TABLE_PARAMETER.pi" [ps]="TABLE_PARAMETER.ps"
  [page]="TABLE_PARAMETER.page" [loading]="loading" (change)="change($event)">
  <ng-template st-row="number" let-row let-index="index">
    {{ ((st.pi ? st.pi : 1) - 1) * (st.ps ? st.ps : 0) + (index + 1) }}
  </ng-template>
  <ng-template st-row="createdTime" let-row let-index="index">
    {{ datePipe1.transform(row.createdTime,'yyyy-MM-dd HH:mm:ss') }}
  </ng-template>
  <ng-template st-row="majors" let-row let-index="index">
    {{ tranceMajor(row.majors) }}
  </ng-template>
  <ng-template st-row="status" let-row let-index="index">
    {{ tranceStatus(row.status) }}
  </ng-template>
  <ng-template st-row="operations" let-i let-index="index">
    <a [acl]="'MESSAGES_UPDATE'" (click)="update(i)">编辑</a>
    <nz-divider nzType="vertical"></nz-divider>

    <a nz-dropdown [nzDropdownMenu]="menu">
      其他
      <i nz-icon nzType="down"></i>
    </a>
    <nz-dropdown-menu #menu="nzDropdownMenu">
      <ul nz-menu nzSelectable>
        <li [acl]="'MESSAGES_DELETE'" nz-menu-item>
          <button nzType="link" nz-popconfirm nzPopconfirmTitle="确定删除吗?" (nzOnConfirm)="delete(i)"
            nzPopconfirmPlacement="topLeft" nz-button>
            删除
          </button>
        </li>

        <li [acl]="'MESSAGES_APPROVAL'" nz-menu-item>
          <button nzType="link" [disabled]="!(i.status==='APPLYING')" nz-popconfirm nzPopconfirmTitle="申请通过?"
            (nzOnConfirm)="shenpi(i)" nzPopconfirmPlacement="topLeft" nz-button>
            审批通过
          </button>
        </li>

        <li [acl]="'MESSAGES_APPROVAL'" nz-menu-item>
          <button nzType="link" [disabled]="!(i.status==='APPLYING')" nz-popconfirm nzPopconfirmTitle="申请退回?"
            (nzOnConfirm)="shenpituihui(i)" nzPopconfirmPlacement="topLeft" nz-button>
            申请退回
          </button>
        </li>
      </ul>
    </nz-dropdown-menu>
  </ng-template>
</st>

<app-messages-detail #messagesDetailComponent (notification)="notify($event)"></app-messages-detail>
